//
//  ZMParser+Json.h
//  EIP
//
//  Created by mac on 15/3/19.
//  Copyright (c) 2015年 Leo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject(Function)

- (void)kk_parserJsonDictionary:(NSDictionary*)jsonDictionary;

//  获取String值
- (NSString*)kk_stringValue;

//正则表达式
+ (BOOL)isValidateEmail:(NSString*)email;

+ (BOOL)isValidateMobile:(NSString*)mobile;

//  按照指定的对象去解析Json数组，并且返回对象数组
+ (NSArray*)kk_parserJsonArray:(NSArray*)jsonArray fromClassType:(Class)classType;

//  按照指定的对象去解析Json字典，并且返回指定的对象类型
+ (id)kk_parserJsonDictionary:(NSDictionary*)jsonDictionary fromClassType:(Class)classType;

@end

@interface NSObject(NSDate)

+ (NSString*)dateStringDifferenceNowWithTime:(NSTimeInterval)timeInterval andWithDetailReturn:(BOOL)detail;

+ (NSString*)dateStringOfTime:(NSTimeInterval)timeInterval;

+ (NSString*)dateStringOfTime:(NSTimeInterval)timeInterval format:(NSString*)format;

@end


@interface NSData(Push)

- (NSString*)pushToken;

@end
